/*    */ package nc.bs.ic.m46.insert;
/*    */ 
/*    */ import nc.bs.ic.general.insert.IInsertBP;
/*    */ import nc.bs.ic.general.insert.rule.after.RewriteQCInsertRule;
/*    */ import nc.bs.ic.general.insert.rule.before.CheckCliabilityValue;
/*    */ import nc.bs.ic.m46.base.BPPlugInPoint;
/*    */ import nc.bs.ic.m46.base.ProdInWarehouseAttriCheck;
/*    */ import nc.bs.ic.m46.insert.rule.FillLocationNumRule;
/*    */ import nc.bs.ic.m46.insert.rule.InsertBomCheck;
/*    */ import nc.bs.ic.m46.insert.rule.InsertRewriteMMDP;
/*    */ import nc.bs.ic.m46.insert.rule.InsertRewriteMMPAC;
/*    */ import nc.bs.ic.m46.insert.rule.ValidateFillRule;
/*    */ import nc.bs.ic.m46.rule.CprowarehouseCheck;
/*    */ import nc.bs.ic.pub.base.ICAroundProcesser;
/*    */ import nc.bs.ic.pub.base.IInsertRuleProvider;
/*    */ import nc.impl.pubapp.pattern.rule.processer.AroundProcesser;
/*    */ import nc.vo.ic.general.define.ICBillVO;
/*    */ import nc.vo.ic.m46.entity.FinProdInVO;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class InsertBP
/*    */   extends Object
/*    */   implements IInsertBP<FinProdInVO>, IInsertRuleProvider<FinProdInVO>
/*    */ {
/*    */   public void addAfterRule(FinProdInVO[] vos, AroundProcesser<FinProdInVO> processor) {
/* 50 */     processor.addAfterRule(new RewriteQCInsertRule());
/*    */ 
/*    */ 
/*    */ 
/*    */     
/* 55 */     ((ICAroundProcesser)processor).addAfterRuleAt(new InsertRewriteMMPAC(), nc.bs.ic.general.rule.after.AtpAfterUpdate.class);
/*    */ 
/*    */ 
/*    */     
/* 59 */     processor.addAfterRule(new InsertRewriteMMDP());
/*    */   }
/*    */ 
/*    */ 
/*    */ 
/*    */   
/*    */   public void addBeforeRule(FinProdInVO[] vos, AroundProcesser<FinProdInVO> processor) {
/* 66 */     processor.addBeforeRule(new ProdInWarehouseAttriCheck());
/* 67 */     processor.addBeforeRule(new CprowarehouseCheck());
/* 68 */     processor.addBeforeRule(new InsertBomCheck());
/* 69 */     processor.addBeforeFinalRule(new FillLocationNumRule());
/*    */     
/* 71 */     processor.addBeforeRule(new CheckCliabilityValue("cliabilityoid", "cioliabilityoid"));
/*    */     
/* 73 */     processor.addBeforeRule(new ValidateFillRule());
/*    */   }
/*    */ 
/*    */   
/*    */   public FinProdInVO[] insert(FinProdInVO[] bills) {
/* 78 */     M46InsertBPTemplate<FinProdInVO> insertBP = new M46InsertBPTemplate<FinProdInVO>(BPPlugInPoint.InsertBP, this);
/*    */     
/* 80 */     return (FinProdInVO[])insertBP.insert(bills);
/*    */   }
/*    */ }


/* Location:              E:\zhuhai_ncc\NCC2111\modules\ic\META-INF\lib\ic_inbound.jar!/nc/bs/ic/m46/insert/InsertBP.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.0.7
 */